package hxy.scan.server;

public class Flight {

    public void fly(String city) {
        System.out.println(city);
    }

    public static void main(String[] args) {
        Flight china = new Flight();
        Flight us = new Flight();
        china.fly("美国");
        us.fly("中国");



        Flight 南航 = new Flight();
        南航.fly("上海");

        Flight 北航 = new Flight();
        北航.fly("广州");
        Flight 纽约 = new Flight();
        纽约.fly("北京");

    }
}
